<template>
	<header class="header">
		<view class="return" @click="goReturn">
			<img src="/static/icon/chevron-left.svg" alt="" />
		</view>
	</header>
</template>

<script lang="ts" setup>
	import {useUserStore} from '@/store'
	
	const showModal = useUserStore()
	const goReturn = () => {
		showModal.isShowModal = false
		console.log(showModal.isShowModal)
		uni.navigateBack({
		  delta: 1 ,// 返回的页面数，1 表示返回上一级
		})

	}
</script>

<style scoped lang="scss">
	.header{
		width: 100%;
		height: 100rpx;
		.return{
			width: 100rpx;
			height: 100rpx;
			box-shadow:3px 3px 10px #333;
			border-radius: 15rpx;
			background-color: #fff;
			img{
				width: 100%;
				height: 100%;
				box-shadow:-3px -3px 10px #fff;
				border-radius: 15rpx;
			}
		}
	}
</style>